const { defineConfig } = require('@vue/cli-service')
var isDev = process.env.NODE_ENV === "development";

let publicPath = isDev ? "/" : "/webapps/mobile";

module.exports = defineConfig({
  transpileDependencies: true,
  publicPath,
  devServer: {
    // https: true,
    proxy: {
      "/budwk": {
        target: "http://47.98.107.249:6080/",
        changeorigin: true,
        pathrewrite: { "^/budwk": "/budwk" },
      },
    },
  },
})
